﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Masterpage/Site.Master"
    CodeBehind="ListItem.aspx.vb" Inherits="AuctionSite_Starter_Kit.ListItem" Title="Untitled Page"
    ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cph_Left" runat="server">

    <script type="text/javascript" language="javascript">
    function growDiv(){
        var height = document.getElementById("growme").style.height;
        var newheight = 0;
        switch(height)
        {
            case "45px":
                newheight = "90px";
                break
            case "90px":
                newheight = "135px";
                break
            case "135px":
                newheight = "180px";
                break
            case "180px":
                newheight = "225px";
                break
            default:
                newheight = "225px";
                break
        }
        document.getElementById("growme").style.height = newheight;
    }
    </script>

    <div style="height: 249px; width: 186px; margin-top: 10px;">
        <div id="growme" style="height: 45px; overflow: hidden;">
            <img alt="" src="../images/progress.gif" />
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_Right" runat="server">
    <div class="cnt_container760">
        <div class="cnt_header760">
        </div>
        <div class="cnt_title760">
            <asp:Label ID="lblLogin" runat="server" CssClass="padleft10" Text="Item Information"></asp:Label>
        </div>
        <div class="cnt_body760">
            <div class="padleft10">
                <table cellpadding="1" cellspacing="0" style="width: 100%">
                    <tr>
                        <td>
                            Category
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="catDropdown" DataTextField="Name"
                                DataValueField="categoryID" Width="165px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Auction Title
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox1" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="TextBox1" ErrorMessage="Auction Title is Required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Sub-Title
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox2" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="TextBox2" ErrorMessage="Sub-Title is Required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Condition
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownList2" runat="server" Width="165px">
                                <asp:ListItem>New</asp:ListItem>
                                <asp:ListItem>Excellent</asp:ListItem>
                                <asp:ListItem>Good</asp:ListItem>
                                <asp:ListItem>Fair</asp:ListItem>
                                <asp:ListItem>Poor</asp:ListItem>
                                <asp:ListItem>Non-Working</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="cnt_footer760">
        </div>
    </div>
    <div class="cnt_container760">
        <div class="cnt_header760">
        </div>
        <div class="cnt_title760">
            <asp:Label ID="Label1" runat="server" CssClass="padleft10" Text="Pricing Info"></asp:Label>
        </div>
        <div class="cnt_body760">
            <div class="padleft10">
                <table cellpadding="1" cellspacing="0" style="width: 100%">
                    <tr>
                        <td>
                            Starting Price
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox3" runat="server" Width="100px" onFocus='growDiv()'></asp:TextBox>
                            $<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="TextBox3" ErrorMessage="Starting Price Is Required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Reserve Amount
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox4" runat="server" Width="100px" Style="margin-bottom: 0px"></asp:TextBox>
                            $<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                ControlToValidate="TextBox4" 
                                ErrorMessage="Reserve Amount is Required.  For no reserve input 0">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Dimensions
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox5" runat="server" Width="300px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                ControlToValidate="TextBox5" ErrorMessage="Dimensions are required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="cnt_footer760">
        </div>
    </div>
    <div class="cnt_container760">
        <div class="cnt_header760">
        </div>
        <div class="cnt_title760">
            <asp:Label ID="Label2" runat="server" CssClass="padleft10" Text="Shipping Information"></asp:Label>
        </div>
        <div class="cnt_body760">
            <div class="padleft10">
                <table cellpadding="1" cellspacing="0" style="width: 100%">
                    <tr>
                        <td>
                            Ship Via
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox6" runat="server" onFocus='growDiv()'></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                ControlToValidate="TextBox6" ErrorMessage="Shipping Method is required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Shipping Charge
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox7" runat="server" Width="125px"></asp:TextBox>
                        &nbsp;$<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                ControlToValidate="TextBox7" ErrorMessage="Shipping charges are required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Delivery Time
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox8" runat="server" Width="65px"></asp:TextBox>
                            (days)<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                ControlToValidate="TextBox8" ErrorMessage="Delivery time in days is required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Restrictions
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox9" runat="server" Width="250px" TextMode="MultiLine" 
                                Height="50px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                                ControlToValidate="TextBox9" ErrorMessage="Restrictions are required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="cnt_footer760">
        </div>
    </div>
    <div class="cnt_container760">
        <div class="cnt_header760">
        </div>
        <div class="cnt_title760">
            <asp:Label ID="Label3" runat="server" CssClass="padleft10" Text="Item Description"></asp:Label>
        </div>
        <div class="cnt_body760">
            <div class="padleft10">
                <table cellpadding="1" cellspacing="0" style="width: 100%">
                    <tr>
                        <td>
                            <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Height="100px"
                                Width="520px" onFocus='growDiv()' />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                                ControlToValidate="txtDescription" ErrorMessage="Item description is required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="cnt_footer760">
        </div>
    </div>
        <div class="cnt_container760">
        <div class="cnt_header760">
        </div>
        <div class="cnt_title760">
            <asp:Label ID="Label4" runat="server" CssClass="padleft10" Text="Images"></asp:Label>
        </div>
        <div class="cnt_body760">
            <div class="padleft10">
                <table cellpadding="1" cellspacing="0" style="width: 100%">
                    <tr>
                        <td>
                            <asp:FileUpload ID="Fileupload1" runat="server" />
                            (thumbnail)<asp:RequiredFieldValidator ID="RequiredFieldValidator11" 
                                runat="server" ControlToValidate="Fileupload1" 
                                ErrorMessage="Thumbnail image is required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:FileUpload ID="Fileupload2" runat="server" />
                            (Auction Image)<asp:RequiredFieldValidator ID="RequiredFieldValidator12" 
                                runat="server" ControlToValidate="Fileupload2" 
                                ErrorMessage="Auction image is required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:FileUpload ID="Fileupload3" runat="server" />
                            (Alternate Image)<asp:RequiredFieldValidator ID="RequiredFieldValidator13" 
                                runat="server" ControlToValidate="Fileupload3" 
                                ErrorMessage="Alternate image is required">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="cnt_footer760">
        </div>
    </div>

    <div style="text-align: right">
        &nbsp;<asp:Button ID="button2" runat="server" Text="Save" Height="45px" Width="75px" />
    </div>
    <asp:LinqDataSource ID="catDropdown" runat="server" ContextTypeName="AuctionSite_Starter_Kit.AuctionInfoDataContext"
        OrderBy="Name" TableName="Categories">
    </asp:LinqDataSource>
</asp:Content>
